package com.smartleanx.module.hrm.controller.admin.employee.vo;

import com.smartleanx.framework.common.validation.Mobile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 用于创建试用账号
 */
@Data
public class EmployeeOnTrialReqVo {


    @Schema(description = "员工姓名，长度不能超过30个字符")
    @NotNull(message = "员工姓名不能为空")
    private String name;


    @Schema(description = "手机")
    @NotNull(message = "手机不能为空")
    @Mobile
    private String mobile;


    @Schema(description = "用户名，由 4-30 个字符 的 数字、字母 组成")
    @NotNull(message = "用户名不能为空")
    private String username;


    @Schema(description = "密码，长度为 4-16 位")
    @NotNull(message = "密码不能为空")
    private String password;


    @Schema(description = "角色", example = "[1,2]")
    @NotEmpty(message = "角色不能为空")
    private List<Long> roleId;

}
